<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>用户管理</title>
    <link rel="stylesheet" href="../../assets/libs/layui/css/layui.css" />
    <link rel="stylesheet" href="../../assets/module/admin.css?v=314" />
    <link rel="stylesheet" href="../../assets/css/publicStyle.css">
    <link rel="stylesheet" href="../../assets/libs/ztree/css/zTreeStyle/zTreeStyle.css">
    <!--[if lt IE 9]>
    <script src="../../assets/libs/html5shiv.min.js"></script>
    <script src="../../assets/libs/respond.min.js"></script>
    <![endif]-->
    <style>
        .layui-fluid>.layui-card {
            height: calc(100vh - 30px);
            overflow: auto;
        }
        .search-global{
            padding: 0 30px;
        }
        #page-box {
            display: inline;
            float: right;
        }
        .globalIndex{
            display: flex;
            align-items: flex-start;
        }
        #page-box .layui-laypage {
            margin: 0;
        }
        .globalTab{
            width: 800px;
        }
        .indexInfo{
            width: 400px;
            box-sizing: border-box;
            border: 1px solid #409eff;
            border-radius: 10px;
            margin-left: 20px;
            margin-top: 20px;
            overflow: hidden;
        }
        .infoCard{
            background: #e5e5e5;
            margin: 20px;
        }
        .infoHeader{
            padding: 5px 10px;
            background: #409eff;
            color: #ffffff;
        }
        .infoCard{
            box-sizing: border-box;
            padding: 10px 20px;
        }
        .infoCard p{
            padding: 5px 0;
        }
        .search_select{
            width: 180px;
            margin-top: 10px;
        }
        .creat-btn{
            min-width: 80px;
            margin-top: 10px;
        }
        .dataIntro{
            margin-top: 30px;
        }
    </style>
</head>

<body>

<!-- 页面加载loading -->
<div class="page-loading">
    <div class="ball-loader">
        <span></span><span></span><span></span><span></span>
    </div>
</div>

<!-- 正文开始 -->
<div class="layui-fluid">
    <div class="layui-card search-global">
        <div class="globalIndex">
            <div class="layui-tab globalTab layui-tab-brief" lay-filter="tabData">
                <ul class="layui-tab-title">
                    <li class="layui-this">基层数据索引</li>
                    <li>基层单位名称索引</li>
                    <li>综合数据索引</li>
                    <li>核心索引</li>
                </ul>
                <div class="layui-tab-content">
<!--                    基层数据索引-->
                    <div class="layui-tab-item layui-show">
                        <p>选择基层调查对象</p>
                        <form lay-filter="modelUserForm" class="layui-form">
                        <div class="search_select">
                            <select name="report" id="microObj" lay-filter="microObj" lay-verify="required" lay-search="">
                            </select>
                        </div>
                            <button type="button" id="creatObj" lay-filter="creat" class="layui-btn creat-btn layui-btn-normal" lay-submit>创 建</button>
                            <p class="dataIntro">基层单位数据索引存储基层调查中的数据，每一个调查对象对应一个索引文件，索引文件中包含单位的所有信息</p>
                        </form>
                    </div>
<!--                    基层单位名称索引-->
                    <div class="layui-tab-item">
                        <p>选择基层调查对象</p>
                        <form lay-filter="modelUserForm" class="layui-form">
                            <div class="search_select">
                                <select id="microIndex" name="report" lay-filter="microIndex" lay-verify="required" lay-search="">

                                </select>
                            </div>
                            <button type="button" id="creatIndex" lay-filter="creat" class="layui-btn creat-btn layui-btn-normal" lay-submit>创 建</button>
                            <p class="dataIntro">基层单位名称索引为专业版系统中的基层名字查询提供快速检索支持。每一个基层调查对象对应一个索引文件，索引文件中存贮了单位的id和单位详细名称字段。</p>
                        </form>
                    </div>
<!--                    综合数据索引-->
                    <div class="layui-tab-item">
                        <p>选择区划级别</p>
                        <form lay-filter="modelUserForm" class="layui-form">
                            <div class="search_select">
                                <select id="macroIndex" name="report" lay-filter="macroIndex" lay-verify="required" lay-search="">
                                </select>
                            </div>
                            <button type="button" id="creatMacroIndex" lay-filter="creat" class="layui-btn creat-btn layui-btn-normal" lay-submit>创 建</button>
                            <p class="dataIntro">综合数据索引存贮了个级别综合数据，每一个行政区划级别的综合数据对应一个索引文件。</p>
                        </form>
                    </div>
<!--                    核心索引-->
                    <div class="layui-tab-item">
                        <form lay-filter="modelUserForm" class="layui-form">
                            <button type="button" id="creatTip" lay-filter="creat" class="layui-btn creat-btn layui-btn-normal" lay-submit>更新索引提示索引</button>
                            <p class="dataIntro">核心索引：是全库检索系统检索数据的核心，主要对用户输入关键字的语义进行维度分析，是查询检索数据的条件解析基础，解析数据包括：基层元数据（指标、枚举型数据）、区划、时段。</p>
                        </form>
                    </div>
                </div>
            </div>
            <div class="indexInfo" id="indexInfo">

            </div>
        </div>
    </div>
</div>

<!--对象索引信息-->
<script type="text/tmpl" id="index-info">
                <p class="infoHeader">当前对象的索引信息</p>
                <div class="infoCard">
                 {{if data}}
                     <p>ID: <span>{{data.id}}</span> </p>
                     <p>表名: <span>{{data.tablename}}</span> </p>
                     <p>名字: <span>{{data.name}}</span> </p>
                     <p>类别: <span>{{data.catalog}}</span> </p>
                {{else}}
                    <p>没有获取此对象的任何索引信息</p>
                {{/if}}

                </div>
</script>

<!--基层数据模板-->
<script type="text/tmpl" id="template-micro-tmpl">
     {{each data}}
        <option value="{{$value.id}}">{{$value.name}}</option>
    {{/each}}

</script>
<!--综合数据模板-->
<script type="text/tmpl" id="template-macro-tmpl">
     {{each data}}
        <option value="{{$value.index}}">{{$value.name}}</option>
    {{/each}}

</script>
<!-- js部分 -->
<script type="text/javascript" src="../../assets/libs/layui/layui.js"></script>
<script type="text/javascript" src="../../assets/js/common.js?v=314"></script>
<script src="../../assets/libs/jquery/jquery-3.2.1.min.js"></script>
<!-- Ztree树部分 -->
<script src="../../assets/libs/ztree/js/jquery.ztree.core.min.js"></script>
<script src="../../assets/libs/ztree/js/jquery.ztree.exedit.js"></script>
<script src="../../assets/libs/ztree/js/jquery.ztree.excheck.min.js"></script>
<script src="../../assets/libs/template-web.js"></script>
<script src="../../assets/libs/axios.min.js"></script>
<script src="../../assets/js/config.js"></script>
<script src="../../assets/js/authority.js"></script>
<script src="../../assets/js/config/region.js"></script>
<script src="../../assets/js/system/globalIndex.js"></script>
</body>

</html>